package club.dataresources.service;

import club.dataresources.entity.Menu;
import com.github.pagehelper.Page;

import java.util.HashMap;
import java.util.List;

public interface MenuService {

	//列表
	public Page<Menu> listMenu(Integer page, Integer rows, Menu menu) throws Exception;

	//点击套餐具体显示套餐内容，根据套餐id
	public HashMap<String,Object> detailMenuById(Integer menuId) throws Exception;

	//根据menuId查找套餐
	public Menu getMenuById(Integer menuId) throws Exception;

	//根据menu_by显示用户的套餐
	public List<Menu> findMenuByMenuBy(Integer menuBy) throws Exception;

	//新增套餐
	public boolean addMenu(Menu menu) throws Exception;

	//删除套餐(根据menuId)
	public boolean removeMenu(Integer menuId) throws Exception;

	//修改套餐
	public boolean updateMenu(Menu menu) throws Exception;

	//新增并赋值主键
	public boolean addAndReturnId(Menu menu) throws Exception;
}
